package com.seo.proxy;

import java.io.File;
import java.net.InetSocketAddress;

import com.seo.async.AsyncSocket;

public class ProxyApp {

	public static void main(String[] args) throws Exception {
		AsyncSocket asyncSocket = AsyncSocket.create();
		for (String arg : args) {
			asyncSocket.listen(new InetSocketAddress(Integer.parseInt(arg)), 0x100);			
		}
		asyncSocket.loop(new ProxyListener(new File("request.log")));
	}
}
